package cn.etynit.mms.feign;

import cn.etynit.domain.Inform;
import cn.etynit.mms.fallback.InformServiceFallbackFactory;
import cn.etynit.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(contextId = "informService",value = "service-platform",path = "/inform",fallbackFactory = InformServiceFallbackFactory.class)
public interface InformService {
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult saveOrUpdate(@RequestBody Inform inform);

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    JsonResult list();
}
